
//
// 121107 - AH - Created.
// 121110 - AH - getTestNames().
//

package org.japril.jhut.framework;

import java.util.Set;

/**
 * <p>
 *   Interface for objects that validates the world.
 * </p>
 * @author Arne Halvorsen (AH)
 */
public interface WorldValidator
{
  /**
   * <p>
   *   Gets names on tests this should validate the world for.
   * </p>
   * @return Names.
   */
  Set<String> getTestNames();
  
  /**
   * <p>
   *   Validates the world.
   * </p>
   * @param world World.
   * @throws AssertException If world not in right state.
   */
  void validate(Object world) throws AssertException;
  
}
